package com.work.crops.feign;

import com.work.crops.pojo.CropsInfo;
import com.work.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "crops")
public interface CropsInfoFeign {

//    根据农作物id查询农作物数据
    @GetMapping("/crops/{id}")
    public Result<CropsInfo> findCropsById(@PathVariable("id") Integer id);


}
